package com.thf.feign;


import com.thf.feign.fallback.AuthFallBack;
import com.thf.model.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "auth",fallback = AuthFallBack.class)
public interface AuthFeign {

    @GetMapping("/auth/checkAccessToUri")
    CommonResult checkAccessToUri(@RequestParam("uri") String uri, @RequestParam("username") String username);
}